package com.xyulu.entity.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description TODO
 * @Author luming
 * @Date 2021/1/29
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Result {

    private Integer code;
    private String message;
    private Object data;

    private Integer count;
    private Integer page;
    private Integer pageSize;

    public Result(Integer code, String message){
        this.code = code;
        this.message = message;
    }

    public Result(Integer code, String message, Object data){
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public Result(Integer code, String message, Integer count, Object data){
        this.code = code;
        this.message = message;
        this.count = count;
        this.data = data;
    }
}
